package com.snail.jj.androiddemos.foundationwidgets;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.util.Log;
import android.view.View;
import android.widget.TextView;

import com.snail.jj.androiddemos.R;
import com.snail.jj.androiddemos.bases.BaseActivity;

/**
 * Created by snail on 2017/4/14.
 */

public class TextViewActivity extends BaseActivity {

    private TextView textView;
    private static final String BaseTag = "TextViewActivity";

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_foundation_textview);
        initView();
    }

    public void initView() {
        textView = (TextView) findViewById(R.id.id_textView_txt1);
        textView.setClickable(true);
        textView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Log.i(BaseTag,"点击View");
            }
        });
    }
}
